iShell Help
Tribeworks > iShell > Commands >
  Switch
   
The Switch command switches the URL attribute of a media element with a new URL and immediately starts to load in the new media and releases the old media. The target element and all its contents are stopped. Any events or commands in the targeted element are cleared and reset. The target element will always get an Offscreen event after the media has been loaded. Commands targeting an element after switching and before the Offscreen event may arrive before the element is ready to act on them.

Options

  • Target Argument: The media element to be switched.
  • URL Argument: The URL must reference a media file type that can be loaded by the target element.